package com.ht.temp.controller;


import com.ht.temp.entity.YearReport;
import com.ht.temp.service.IYearReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-24
 */
@RestController
@RequestMapping("/yearReportController")
public class YearReportController {
   @Autowired
    private IYearReportService yearReportService;

    @RequestMapping(value = "/getYearReportByYear",method = RequestMethod.POST)
    public List<YearReport> getYearReportByYear(Integer deviceId, String startTime, String endTime){
        return  yearReportService.getYearReportByYear(deviceId,startTime,endTime);
    }
}
